package com.ruoyi.purchase.mapper;

import com.ruoyi.purchase.domain.Firm;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.SysCity;
import com.ruoyi.system.domain.SysProvince;

import java.util.List;

/**
 * @Entity com.ruoyi.purchase.domain.Firm
 */
public interface FirmMapper extends BaseMapper<Firm> {
    public List<Firm> findAllFirm(Firm firm);

    //二级联动
    public List<SysCity> selectCityById(Integer cid);

    //二级联动
    public List<SysProvince> selectProv();


    public int updateUser(Firm firm);

    /**
     * 查看详情
     * @param firmId
     * @return
     */
    public Firm selectFirmById(Integer firmId);

    /**
     * 通过id查找Firm
     * @param firmId
     * @return
     */
    public Firm findFirmById(Integer firmId);


}




